home *** CD-ROM | disk | FTP | other *** search
/ Minami 55 / MINAMI55.ISO / Varios / Juegos / 05 - Power_Ranger.swf / scripts / DefineSprite_128 / frame_9 / DoAction.as
Text File  |  2004-10-04  |  847b  |  29 lines

  1. _parent._x += _parent.spx;
  2. _parent._y += _parent.spy;
  3. _parent.spx = 30 * Math.sin(0.017453292519943295 * (r - 90 * (_parent.muki * 2 - 1)));
  4. _parent.spy = 30 * Math.cos(0.017453292519943295 * (r - 90));
  5. if(_root.HP > 0)
  6. {
  7.    if(_parent.ak.hitTest(_root.s0.a.aaa.k))
  8.    {
  9.       if(_root.s0["e" + _parent.jiki].scale < 180)
  10.       {
  11.          _root.e_damage(1.5,-1,-2,1,-2,1,0,_parent.no,1,1,_parent.muki);
  12.       }
  13.       else
  14.       {
  15.          _root.e_damage(1.5,-1,100,0,0,0,0,_parent.no,1,1,_parent.muki);
  16.       }
  17.       _parent.spx = 5 * Math.sin(0.017453292519943295 * (r - 90 * (_parent.muki * 2 - 1)));
  18.       _parent.spy = 5 * Math.cos(0.017453292519943295 * (r - 90));
  19.    }
  20. }
  21. if(_parent._x < -20 || _parent._x > 620 || _parent._y < -20 || _parent._y > 350)
  22. {
  23.    removeMovieClip(_parent);
  24. }
  25. else
  26. {
  27.    gotoAndPlay(8);
  28. }
  29.